var gulp = require('gulp');
var requireDir = require('require-dir');
var runSequence = require('run-sequence');
var env = require('./gulp/utils/env');

requireDir('./gulp/tasks', {recurse: true});

gulp.task('default', ['clean'], function() {
    if (env() === 'development') {
        runSequence('lint', 'images', 'css', 'rep', 'js', 'html', 'rev', 'copy', 'watch');
    } else {
        runSequence('images', 'css', 'rep', 'js', 'html', 'copy');
    }
});
